package com.yaowk.email.model.page;

import com.jfinal.plugin.activerecord.Record;
import com.yaowk.common.model.Page;

/**
 * @authc yaowk
 * 2017/5/15
 */
public class FeedbackPage extends Page {

    private Integer tag;
    private String keyword;

    public Integer getTag() {
        return tag;
    }

    public void setTag(Integer tag) {
        this.tag = tag;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    @Override
    public Record toRecord() {
        Record record = new Record()
                .set("tag", tag)
                .set("keyword", keyword)
                .removeNullValueColumns();
        return record;
    }
}
